package com.simple.business.service.evaluation;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.zuihou.base.R;
import com.github.zuihou.base.request.PageParams;
import com.github.zuihou.base.service.SuperService;
import com.simple.business.domain.dto.evaluation.EvaluationDTO;
import com.simple.business.domain.dto.evaluation.EvaluationSaveDTO;
import com.simple.business.domain.entity.evaluation.Evaluation;
import com.simple.business.domain.vo.evaluation.EvaluationReportVO;
import com.simple.business.domain.vo.evaluation.EvaluationVO;

/**
 * @desc
 * @Author SimpleTree
 * @Date 2025/3/10 22:07
 **/
public interface EvaluationService extends SuperService<Evaluation> {

    /**
     * 保存测评结果
     * @param evaluationSaveDTO
     * @return
     */
    R<Boolean> saveEvaluationReport(EvaluationSaveDTO evaluationSaveDTO);

    /**
     * 查看用户的测评报告
     * @param params
     * @return
     */
    R<IPage<EvaluationVO>> queryEvaluations(PageParams<EvaluationDTO> params);

    /**
     * 删除测评报告
     * @param evaluationId
     * @return
     */
    R<Boolean> deleteEvaluationReport(Long evaluationId);

    /**
     * 查看测评报告
     * @param evaluationId
     * @return
     */
    R<EvaluationReportVO> queryEvaluationReportById(Long evaluationId);

}
